<?php
/**
 * @author     ：lhw
 * @date       ：Created in 2019/8/4 11:25
 */

namespace app\api\vo;


class ResultVO
{
    public $data;
    //默认成功0
    public $code = 0;

    public function __construct($params=[]){
        if(!is_array($params)){
            return;
        }
        if(array_key_exists('data',$params)){
            $this->data = $params['data'];
        }
        if(array_key_exists('code',$params)){
            $this->code = $params['code'];
        }

    }
}